// 操作认证信息的模块，操作本地token的模块
// 约定存储token数据的KEY
const KEY = 'geek-client-pc-token'

// 获取token
const getToken = () => {
  return localStorage.getItem(KEY)
}

// 设置token
const setToken = (token) => {
  localStorage.setItem(KEY, token)
}

// 删除token
const delToken = () => {
  localStorage.removeItem(KEY)
}

export default {
  getToken,
  setToken,
  delToken
}
